package org.hagen.mmia.yars.engine.corpora;

import java.io.File;
import java.io.FileNotFoundException;
import java.util.ArrayList;
import java.util.Scanner;

public class Stop {

	static public ArrayList<String> words = new ArrayList<String>();
	
	static public void readWords() {
		String filename = "C:\\Users\\d041506\\Documents\\DATA\\stopwords_en.txt";
		File file = new File(filename);

		try {
			Scanner in = new Scanner(file);

			while (in.hasNextLine()) {

				String line = in.nextLine();
				Stop.words.add( line );
			}
			
			in.close();

		} catch (FileNotFoundException e1) {
				e1.printStackTrace();
		}
	}
}
